package com.flyoil.petromp.entity.entity_course_list;

import com.flyoil.petromp.base.BaseEntity;

import java.util.List;

/**
 * Created by songzhiiyn on 2017/10/11.
 * 流程列表的实体类
 */

public class CourseEntity extends BaseEntity {
    private String title;
    private String type;
    private List<Children> childrens;

    public CourseEntity(String title, String type, List<Children> childrens) {
        this.title = title;
        this.type = type;
        this.childrens = childrens;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<Children> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<Children> childrens) {
        this.childrens = childrens;
    }

    public static class Children {
        private String name;
        private String type;

        public Children(String name, String type) {
            this.name = name;
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }
}
